#ifndef     __BIT_CTRL_H
#define     __BIT_CTRL_H

#include <stdint.h>

namespace utils {

template <uint8_t BIT, typename T>
inline bool is_clr_bit(T val) {
    return (val & (0x01 << BIT)) == 0x00;
}

template <uint8_t BIT, typename T>
inline bool is_set_bit(T val) {
    return (val & (0x01 << BIT)) != 0x00;
}

}


#endif
